package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购单对象 pms_purchase
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public class PmsPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 采购单号 */
    @Excel(name = "采购单号")
    private String purchaseCode;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 下单人 */
    @Excel(name = "下单人")
    private Long purchaser;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    /** 审核状态 0 待审核 1审核通过 2审核不通过 */
    @Excel(name = "审核状态 0 待审核 1审核通过 2审核不通过")
    private Long status;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditor;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPurchaseCode(String purchaseCode) 
    {
        this.purchaseCode = purchaseCode;
    }

    public String getPurchaseCode() 
    {
        return purchaseCode;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setPurchaser(Long purchaser) 
    {
        this.purchaser = purchaser;
    }

    public Long getPurchaser() 
    {
        return purchaser;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAuditor(Long auditor) 
    {
        this.auditor = auditor;
    }

    public Long getAuditor() 
    {
        return auditor;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseCode", getPurchaseCode())
            .append("purchaseTime", getPurchaseTime())
            .append("purchaser", getPurchaser())
            .append("supplierId", getSupplierId())
            .append("status", getStatus())
            .append("auditor", getAuditor())
            .append("auditTime", getAuditTime())
            .toString();
    }
}
